package com.wuzhen.wzzt.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Table(name = "enroll_user")
public class EnrollUser {

    @Id
    private String id;

    /**
     * 昵称
     */
    @NotEmpty
    @Column(name = "nick_name")
    private String nickName;

    /**
     * 职务名称
     */
    @Column(name = "post_name")
    private String postName;

    /**
     * 手机号码
     */
    @NotEmpty
    @Column(name = "phone_number")
    private String phoneNumber;

    /**
     * 海报地址
     */

    @Column(name = "playbill_address")
    private String playbillAddress;


    public String getRecommenderNo() {
        return recommenderNo;
    }

    public void setRecommenderNo(String recommenderNo) {
        this.recommenderNo = recommenderNo;
    }

    /**
     * 推荐编号
     */
    @Column(name = "recommender_no")
    private String recommenderNo;



    /**
     * 活动编号
     */
    @NotEmpty
    @Column(name = "active_no")
    private String activeNo;



    /**
     * 活动编号
     */
    @Column(name = "open_id")
    private String openId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    //
//    /**
//     * 删除标志
//     */
//    @Column(name = "del_flag")
//    private String delFlag;
    @Column(name = "qr_code")
    private String qrCode;

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;


//    public String getThirdSessionKey() {
//        return thirdSessionKey;
//    }
//
//    public void setThirdSessionKey(String thirdSessionKey) {
//        this.thirdSessionKey = thirdSessionKey;
//    }
//
//    private String thirdSessionKey;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPlaybillAddress() {
        return playbillAddress;
    }

    public void setPlaybillAddress(String playbillAddress) {
        this.playbillAddress = playbillAddress;
    }

    public String getActiveNo() {
        return activeNo;
    }

    public void setActiveNo(String activeNo) {
        this.activeNo = activeNo;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

//    public String getDelFlag() {
//        return delFlag;
//    }
//
//    public void setDelFlag(String delFlag) {
//        this.delFlag = delFlag;
//    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "EnrollUser{" +
                ", nickName='" + nickName + '\'' +
                ", postName='" + postName + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", playbillAddress='" + playbillAddress + '\'' +
                ", recommenderNo='" + recommenderNo + '\'' +
                ", activeNo='" + activeNo + '\'' +
                ", openId='" + openId + '\'' +
                ", qrCode='" + qrCode + '\'' +
//                ", delFlag='" + delFlag + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}